<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script src="../js/vue.js"></script>
</head>
<body>

    <div id = "app">

        <a href=""点击跳转到首页></a>

        <div v-text="msg1"></div>
        <div v-text="msg2"></div>


        <div v-html="msg1"></div>
        <div v-html="msg2"></div>



    </div>

</body>
</html>

<script>

    new  Vue({
        el:"#app",
        data:{
            msg1:'嘿嘿',
            msg2:`<a href="">点击跳转到首页></a>`
        }
    })







</script>